package com.littlehu.service.impl;

import com.example.common.utils.ApiSendSmsCodeUtils;
import com.littlehu.mapper.VerificationMapper;
import com.littlehu.pojo.Verification;
import com.littlehu.service.VerificationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.net.URLEncoder;
import java.util.Date;
import java.util.List;

/**
 * @author littlehu
 * @data 2018/6/25 17:05
 * @Email 807115007@qq.com
 **/
@Service
public class VerificationServiceImpl implements VerificationService {

    @Autowired
    private VerificationMapper mapper;

    @Override
    public int insertVerCode(Verification verification) {
        return mapper.insertVerification(verification);
    }

    @Override
    public List<Verification> selectByPhones(String phone) {
        return mapper.selectByPhone(phone);
    }


}
